import React, { Component } from 'react';

// 导入子组件
import Myclschild from './Myclschild';
class Mycls extends Component {
    state = {
        username: '程峰'
    }
    render() {
        return (
            <div>
                {/* 使用子组件 */}
                <Myclschild username={this.state.username}></Myclschild>
            </div>
        );
    }
}

export default Mycls;
